package org.wlci.captur.domain;

import java.util.Collection;

import org.wlci.captur.domain.core.Entity;
import org.wlci.captur.domain.core.Sequence;

public class Patient extends Entity {

	private long hospitalNumber;
	private long personIdentificationNumber;
	
	private String firstName;
	private String middleName;
	private String lastName;
	
	protected Patient() { }
	
	protected Patient(long id, long hospitalNumber, long personalIdentificationNumber, String firstName, String lastName ) {

		super(id);
		
		this.hospitalNumber = hospitalNumber;
		this.personIdentificationNumber = personalIdentificationNumber;
		this.firstName = firstName;
		this.lastName = lastName;
		
	}

	public Collection<Visit> getVisits() {
		
		return null; //Visits.findByPatient( this );
		
	}
	
	public static Patient create( long personalIdentificationNumber, String firstName, String lastName ) {
		return new Patient( Sequence.next(), Sequence.nextHospitalNumber(), personalIdentificationNumber, firstName, lastName );
	}

	
}
